﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.Departments
{
    [RemoteService(isEnabled: false)]
    public interface IDepartmentAppService:IApplicationService
    {
        Task<DepartmentDto> GetAsync(Guid id);

        Task<bool> Delete(Guid id);

        Task<List<DepartmentDto>> GetListAsync(string? filterName);

        Task<BackJson> CreateAsync(DepartmentCreateDto dto);

        Task<BackJson> UpdateAsync(DepartmentDto dto);
    }
}
